<div>
    <link rel="stylesheet" href="code/css/common.css">
    <link rel="stylesheet" href="code/css/index.css">

    <script>
        $('.left').append('<div class="modal"></div>')
    </script>
    <style>
        #wrapper{
            background-color: #F3F3F5;
        }
        .col-sm-5 {
            width: 100%;
        }
        .layui-layer-content{
            background-color: #393D49;
            color: #fff;
        }
        .up_load{
            width: 100%;
            display: -webkit-box;
            padding-top: 20px;
        }
        .up_load li{
            -webkit-box-flex: 1;
        }
        .up_load li img{
            width: 100px;
        }
        .upfilebox {
            position: relative;
        }
        .upfilebox input {
            width: 100px;
            height: 45px;
            position: relative;
            z-index: 9;
            opacity: 0;
        }
        .upfilebox label {
            position: absolute;
            display: inline-block;
            color: #fff;
            width: 125px;
            height: 45px;
            line-height: 36px;
            text-align: center;
            top: 0px;
            left: 0px;
            font-size: 16px;
            border-radius: 3px;
        }
        .layui-layer-content img{
            width: 100%;
            height: auto;
        }
        .layui-layer-title{
            display: none;
        }

    </style>
    <div class="content_title">
        <span>智商管理>>{{msg}}</span>
        <button  class="common_btn cancel" ng-click="cancel()">返回</button>
    </div>

    <div class="ad_content">
        <table class="table video_add_table">

            <tr>
                <td>
                    <h5>问题内容:</h5>
                </td>
                <td>
                    <textarea name=""  ng-model="data.question"  style="min-height: 100px;" cols="30" rows="10"></textarea>
                </td>
            </tr>
            <tr>
                <td>
                    <h5>问题图片:</h5>
                </td>
                <td id="ques_col_icon">
                    <ul class="up_load">
                        <li>
                            <div class="upfilebox">
                                <input type="file"  id="upload_ques_icon" accept="image/jpeg,image/png,image/gif"/>
                                <!--<label >上传图片</label>-->
                                <label class="btn btn-success " type="button"><i class="fa fa-upload"></i>&nbsp;&nbsp;<span class="bold">上传图片</span>
                                </label>
                            </div>
                        </li>
                        <li>
                            <img ng-show="data.questionPicUrl" src="{{data.questionPicUrl}}" alt="" ng-click="showPhotos(data.questionPicUrl,'ques')">
                        </li>
                    </ul>
                    <P class="redStar">750*400</P>
                </td>
            </tr>
            <tr>
                <td>
                    <h5>答案内容:</h5>
                </td>
                <td>
                    <textarea name="" ng-model="data.answer" style="min-height: 100px;" cols="30" rows="10"></textarea>
                </td>
            </tr>
            <tr>
                <td>
                    <h5>答案图片:</h5>
                </td>
                <td id="video_col_icon">
                    <ul class="up_load">
                        <li>
                            <div class="upfilebox">
                                <input type="file"  id="upload_answer_icon" accept="image/jpeg,image/png,image/gif"/>
                                <!--<label >上传图片</label>-->
                                <label class="btn btn-success " type="button"><i class="fa fa-upload"></i>&nbsp;&nbsp;<span class="bold">上传图片</span>
                                </label>
                            </div>
                        </li>
                        <li>
                            <img ng-show="data.answerPicUrl" src="{{data.answerPicUrl}}" alt="" ng-click="showPhotos(data.answerPicUrl,'answer')">
                        </li>
                    </ul>
                    <P class="redStar">750*400</P>
                </td>
            </tr>


            <tr>
                <td><H5>排序值:</H5></td>
                <td>
                    <input type="number" class="id_input" ng-model="data.weight">
                </td>
            </tr>

            <tr>
                <td>
                    <i class="redStar">*</i>
                    <H5>有效显示:</H5>
                </td>
                <td>
                    <input type="radio" id="ques_type1" value="0" name="addType" checked>
                    <label class="common_label" for="ques_type1">有效</label>

                    <input type="radio" id="ques_type2" value="1" name="addType">
                    <label class="common_label" for="ques_type2">无效</label>
                </td>
            </tr>
        </table>

        <div class="preserveCancel">
            <button class="preserve_btn" ng-click="quesPost()">保存</button>
            <button class="cancel_btn" ng-click="quesCancel()">取消</button>
        </div>
    </div>
</div>